// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取月/年工况统计图数据 GET /statistic/workstatus/chart/${param0} */
export async function statisticWorkStatusControllerGetMonthYearWorkStatus(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticWorkStatusControllerGetMonthYearWorkStatusParams,
  options?: { [key: string]: any },
) {
  const { dateType: param0, ...queryParams } = params;
  return request<API.WorkStatusPage[]>(`${apiPrefix}/statistic/workstatus/chart/${param0}`, {
    method: 'GET',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  });
}

/** 获取日工况统计图数据 GET /statistic/workstatus/chart/day */
export async function statisticWorkStatusControllerGetDateWorkStatus(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticWorkStatusControllerGetDateWorkStatusParams,
  options?: { [key: string]: any },
) {
  return request<API.WorkStatusDateResp[]>(`${apiPrefix}/statistic/workstatus/chart/day`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出日/月/年工况列表数据 GET /statistic/workstatus/export/${param0} */
export async function statisticWorkStatusControllerExportWorkStatusDatas(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticWorkStatusControllerExportWorkStatusDatasParams,
  options?: { [key: string]: any },
) {
  const { dateType: param0, ...queryParams } = params;
  return request<any>(`${apiPrefix}/statistic/workstatus/export/${param0}`, {
    method: 'GET',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  });
}

/** 获取月/年工况列表数据 GET /statistic/workstatus/list/${param0} */
export async function statisticWorkStatusControllerGetMonthYearWorkStatusPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticWorkStatusControllerGetMonthYearWorkStatusPageParams,
  options?: { [key: string]: any },
) {
  const { dateType: param0, ...queryParams } = params;
  return request<API.WorkStatusPageVO>(`${apiPrefix}/statistic/workstatus/list/${param0}`, {
    method: 'GET',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  });
}

/** 获取日工况列表数据 GET /statistic/workstatus/list/day */
export async function statisticWorkStatusControllerGetDateWorkStatusPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.statisticWorkStatusControllerGetDateWorkStatusPageParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationWorkStatusDateResp>(
    `${apiPrefix}/statistic/workstatus/list/day`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
